package corewarsxxi.logic;

/**
 * Interface IObservable used to implement the Observable design pattern
 *
 * @version 1.0
 * @see     corewarsxxi.logic.Observer
 * @author  Luís Fonseca, ei10139 @ FEUP
 */
public interface IObservable
{
    /**
     * Adds an Observer to the IObservers List
     * @param obs Observer object
     */
    public void addObserver(IObserver obs);

    /**
     * Invokes the notification from a MemoryCell
     * @param cell MemoryCell cell
     */
    public void notifyObs(MemoryCell cell);
}
